package entity;

/**
 * @Author: wanqian
 * @Date: 2021/2/25 9:16
 */
public class Classdemo {

    public static final String chars = "chars";

    private static int id = 1;

    private static String name;

    private int age;

    private String addr;

    private double random;

    static {
        name = "whstone";
    }

    public Classdemo(int age, String addr) {
        this.age = age;
        this.addr = addr;
    }

    public double setRandom() {
        random = Math.random();
        return random;
    }

    public int test(int i) {
        int a = 1;
        int b = 2;
        i = a + b;
        return i;
    }

    public int test2(int i) {
        {
            int a = 1;
        }
        int b = 2;
        i = b;
        return i;
    }


}
